Skip to content

Comments

Introduce @asgardeo/angular SDK#373

Draft
DonOmalVindula wants to merge 6 commits intoasgardeo:mainfrom
DonOmalVindula:angular-sdk
Draft

Introduce @asgardeo/angular SDK#373
DonOmalVindula wants to merge 6 commits intoasgardeo:mainfrom
DonOmalVindula:angular-sdk

Conversation

@DonOmalVindula
Copy link
Contributor

Purpose

This pull request introduces the initial setup for the @asgardeo/angular package, laying the foundation for Angular integration with the Asgardeo JavaScript SDK. The changes include configuration files, build scripts, and the core implementation for the Angular client, as well as supporting API utilities.

Key highlights:

  • Adds and configures linting and formatting tools.
  • Sets up build scripts using esbuild.
  • Implements the main AsgardeoAngularClient class, providing authentication and organization management for Angular apps.
  • Introduces an Angular-specific wrapper for organization creation.

Angular SDK Core Implementation:

  • Introduced the AsgardeoAngularClient class in src/AsgardeoAngularClient.ts, implementing user authentication, session management, organization switching, and profile retrieval tailored for Angular applications. This class wraps the SPA client and exposes Angular-friendly methods and error handling.

  • Added createOrganization utility in src/api/createOrganization.ts, providing an Angular-specific API for creating organizations, supporting both default and custom fetchers, and multi-instance support.

Build and Tooling Setup:

  • Added esbuild.config.mjs to configure dual ESM/CJS builds, reading dependencies from package.json and outputting to the dist directory.

  • Added and configured .eslintrc.cjs, .eslintignore, and prettier.config.cjs for code linting and formatting, using WSO2's shared configurations. [1] [2] [3]

Package Metadata and Scripts:

  • Created package.json with metadata, build/test scripts, dependencies, and publishing configuration for the new @asgardeo/angular package.

Related Issues

  • N/A

Related PRs

  • N/A

Checklist

  • Followed the CONTRIBUTING guidelines.
  • Manual test round performed and verified.
  • Documentation provided. (Add links if there are any)
  • Unit tests provided. (Add links if there are any)

Security checks

@DonOmalVindula DonOmalVindula marked this pull request as draft February 19, 2026 08:36
@DonOmalVindula DonOmalVindula force-pushed the angular-sdk branch 2 times, most recently from bfb52d5 to fa83417 Compare February 21, 2026 08:16
@asgardeo-github-bot
Copy link

⚠️ No Changeset found

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go.

If these changes should result in a version bump, you need to add a changeset.

Refer Release Documentation to learn how to add a changeset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants